home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 114 / CDRom114.iso / internet / temathun / Mostly Crystal.jar / global / textbox.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2004-08-27  |  2.4 KB  |  86 lines

  1. /*
  2.  * The contents of this file are subject to the Netscape Public
  3.  * License Version 1.1 (the "License"); you may not use this file
  4.  * except in compliance with the License. You may obtain a copy of
  5.  * the License at http://www.mozilla.org/NPL/
  6.  *
  7.  * Software distributed under the License is distributed on an "AS
  8.  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  9.  * implied. See the License for the specific language governing
  10.  * rights and limitations under the License.
  11.  *
  12.  * The Original Code is Mozilla Communicator client code, released
  13.  * March 31, 1998.
  14.  *
  15.  * The Initial Developer of the Original Code is Netscape
  16.  * Communications Corporation. Portions created by Netscape are
  17.  * Copyright (C) 1998-2001 Netscape Communications Corporation. All
  18.  * Rights Reserved.
  19.  *
  20.  * Contributor(s):
  21.  *   Joe Hewitt (hewitt@netscape.com)
  22.  */
  23.  
  24. /* ===== textbox.css ==================================================
  25.   == Styles used by the XUL textbox element.
  26.   ======================================================================= */
  27.  
  28. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  29. @namespace html url("http://www.w3.org/1999/xhtml");
  30.  
  31. /* ::::: textbox ::::: */
  32.  
  33. textbox {
  34.   -moz-appearance: textfield;
  35.   cursor: text;
  36.   margin: 2px 4px;
  37.   border: 2px solid;
  38.   -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
  39.   -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
  40.   -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
  41.   -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
  42.   padding: 1px 0px 1px 2px;
  43.   background-color: -moz-Field;
  44.   color: -moz-FieldText;
  45. }
  46.     
  47. html|*.textbox-input, 
  48. html|*.textbox-textarea {
  49.   margin: 0px !important;
  50.   border: none !important;
  51.   padding: 0px !important;
  52.   background-color: inherit;
  53.   color: inherit;
  54.   font: inherit;
  55. }
  56.  
  57. /* ..... readonly state ..... */
  58.  
  59. textbox[readonly="true"] {
  60.   background-color: -moz-Dialog;
  61.   color: -moz-DialogText;
  62. }
  63.  
  64. /* ..... disabled state ..... */
  65.  
  66. textbox[disabled="true"] {
  67.   cursor: default;
  68.   background-color: -moz-Dialog;
  69.   color: GrayText;
  70.  
  71. /* ::::: plain textbox ::::: */
  72.  
  73. textbox.plain {
  74.   -moz-appearance: none !important;
  75.   padding: 0px !important;
  76.   margin: 0px !important;
  77.   border: none !important;
  78. }
  79.  
  80. /* ::::: textboxes inside toolbarpaletteitems ::::: */
  81.  
  82. toolbarpaletteitem > toolbaritem > textbox > .textbox-input-box > html|*.textbox-input {
  83.   visibility: hidden;
  84. }
  85.